









package com.company.z3gongchangfangfa.celue;


/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 * ���Թ���
 */
public class StrategyFactory {
	
	
	public static IDeduction getDeduction(StrategyMan strategy){
		IDeduction deduction = null;
		try {
			deduction = (IDeduction)Class.forName(strategy.getValue()).newInstance();
		}  catch (Exception e) {
			
			e.printStackTrace();
		}
		return deduction;
		
	}
}